import 'package:p_location/home/obj/vehicle_guige_info.dart';

class VehicleGuigeList {
  List<VehicleGuigeInfo> guige;

  VehicleGuigeList({this.guige});

  factory VehicleGuigeList.fromJson(Map<String, dynamic> json) {
    return VehicleGuigeList(
      guige: json['guige'] != null
          ? (json['guige'] as List)
          .map((i) => VehicleGuigeInfo.fromJson(i))
          .toList()
          : null,
    );
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.guige != null) {
      data['guige'] = this.guige.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
